<?php

namespace App\Repository\Repositories;

use App\Repository\Repositories\Interfaces\OrderContractRepository;
use App\Repository\Models\OrderContract;

/**
 * Class ReceivingAccountRepositoryEloquent.
 *
 * @package namespace App\Repository\Repositories;
 */
class OrderContractRepositoryEloquent extends BaseRepository implements OrderContractRepository
{
    /**
     * 搜索
     * @var array
     */
    protected $fieldSearchable = [
        'order_id',
        'status',
        'contract_code'=>'like',
        'created_at' => 'between',
    ];
    
    public $fieldFuzzySearch = [
        'contract_code',
        'order_id',
    ];

    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return OrderContract::class;
    }

    public function query()
    {
        return $this->model->newQuery();
    }
    
 
    
}
